"""
客户端
"""
import lark_oapi as lark

from common.cache_util import cache

def get_client():
    client = cache.get("client")
    if not client:
        print("获取")
        client = lark.Client.builder() \
            .app_id("cli_a1bc63089d79d00b") \
            .app_secret("arGBCTjYIp1uvcMAbgOebc2vU2VpLcsD") \
            .log_level(lark.LogLevel.DEBUG) \
            .timeout(6000) \
            .build()
        cache.set("client",client)
    return client
